#ifndef __APP_MQTT_H__
#define __APP_MQTT_H__

#include "app_common.h"
#include "MQTTClient.h"

/// @brief mqtt初始化
/// @param  
/// @return 
Com_state_t app_mqtt_init(void);

/// @brief 停止MQTT客户端
/// @param
/// @return
Com_state_t app_mqtt_deinit(void);

/// @brief 注册接收回调
/// @param recv_cv 
void app_mqtt_recv_callback_register(void (*recv_cv)(void *data, int len));

/// @brief MQTT发送消息
/// @param data 
/// @param len 
/// @return 
Com_state_t app_mqtt_send(void *data, int len);

#endif /* __APP_MQTT_H__ */